﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogSite.Models
{
    public class Comment
    {
        public int CommentId { get; set; }
        public string Commenter { get; set; }
        public string TheComment { get; set; }
        public Rating CommenterRating { get; set; }
        public int BlogId { get; set; }

        public Comment() 
        {
            //CommentId = 0;
            //Commenter = string.Empty;
            //TheComment = string.Empty;
            //CommenterRating = Rating.Inappropriate;
            //BlogId = 0;
        }

        public Comment(int blogid, string commenter, string comment, Rating rating)
        {
            CommentId = BlogHelper.CommentID++;
            Commenter = commenter;
            TheComment = comment;
            CommenterRating = rating;
            BlogId = blogid;
        }
    }

    public enum Rating
    {
        Inappropriate = 1,
        Vague,
        Relevant,
        Informative,
        Essential
    }
}